package com.example.qxfw.ybzz.service.impl;

import com.example.qxfw.common.entity.qx.YbzzForecastdiff;
import com.example.qxfw.ybzz.mapper.YbzzForecastdiffMapper;
import com.example.qxfw.ybzz.service.YbzzForecastdiffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class YbzzForecastdiffServiceImpl implements YbzzForecastdiffService {

    @Autowired
    private YbzzForecastdiffMapper ybzzForecastdiffMapper;

    @Override
    public Integer save(YbzzForecastdiff ybzzForecastdiff) {
        return ybzzForecastdiffMapper.insert(ybzzForecastdiff);
    }

    @Override
    public Integer delete(String timespan, String param1, String param2, String forecastType) {
        int rows = ybzzForecastdiffMapper.delete(timespan,param1, param2,forecastType);
        return rows;
    }
}
